package com.yonder.service.impl;

import com.yonder.dao.UserDao;
import com.yonder.pojo.User;
import com.yonder.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ClassName UserServiceImpl
 * @Description TODO
 * @Author zxs
 * @Date 2021/3/23 17:01
 * Version 1.0
 */

@Service
@Transactional
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User findUserByUsername(String username) {

        return userDao.findUserByUsername(username);
    }
}
